package cn.thornbird.orgsync.vo.request;

import cn.thornbird.orgsync.entity.status.VerificationCodeUsage;
import cn.thornbird.orgsync.vo.record.SimpleUserRecord;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SendVerificationCodeRequest {

    public static final String MOBILE_REG_EXP = SimpleUserRecord.MOBILE_REG_EXP;

    public static final String VERIFICATION_CODE_REG_EXP = "^\\d{4}$";

    private String mobile;

    private String username;

    @NotNull(message = "验证码用途不能为空")
    private VerificationCodeUsage usage;

    @NotBlank(message = "安全验证不能为空")
    private String captchaVerification;

}
